package com.kzd.sdk.ui.adapter.holder;

import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.kzd.sdk.utils.AppUtils;

public class RechargeCoinHolder extends RecyclerView.ViewHolder {

    public TextView tvRechargeCoinMoney;

    public RechargeCoinHolder(@NonNull View itemView) {
        super(itemView);
        tvRechargeCoinMoney = (TextView) itemView;
        LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, AppUtils.dp2px(40f));
        layoutParams.setMargins(AppUtils.dp2px(5f), AppUtils.dp2px(5f), AppUtils.dp2px(5f), AppUtils.dp2px(5f));
        tvRechargeCoinMoney.setLayoutParams(layoutParams);
        tvRechargeCoinMoney.setTextColor(Color.parseColor("#666666"));
        tvRechargeCoinMoney.setTextSize(13f);
        tvRechargeCoinMoney.setGravity(Gravity.CENTER);
        tvRechargeCoinMoney.setPadding(AppUtils.dp2px(5f), 0, AppUtils.dp2px(5f), 0);
    }

}
